Database Entities Documentation
ShortUrl
Represents a shortened version of an original URL with a unique short code.
| Column | Type | Description |
|---|---|---|
id | number | Primary key, auto-generated identifier. |
originalUrl | string | The original full URL to be shortened. |
shortCode | string | A unique short code representing the shortened URL. |
createdAt | Date | Timestamp when the short URL entry was created. |
Unique Constraints
shortCodemust be unique across all short URLs.